home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-01-24 | 1.5 KB | 57 lines | [TEXT/MPS ] |
- %%
- %% This is file `xr.sty', generated
- %% on <1995/1/24> with the docstrip utility (2.2i).
- %%
- %% The original source files were:
- %%
- %% xr.dtx (with options: `package')
- %%
- %% IMPORTANT NOTICE:
- %% This file is part of the `tools' bundle
- %% in the LaTeX2e distribution.
- %%
- %% You are not allowed to distribute this file.
- %% For distribution of the original source see
- %% the copyright notice in the source file, and
- %% in the file readme.txt distributed with the
- %% tools bundle.
- %%
- %% File: xr.dtx Copyright (C) 1993-1994 David Carlisle
- \NeedsTeXFormat{LaTeX2e}
- \ProvidesPackage{xr}
- [1994/05/28 v5.02 eXternal References (DPC)]
- \def\externaldocument{\@ifnextchar[\XR@{\XR@[]}}
- \def\XR@[#1]#2{{%
- \makeatletter
- \def\XR@prefix{#1}%
- \XR@next#2.aux\relax\\}}
- \def\XR@next#1\relax#2\\{%
- \edef\XR@list{#2}%
- \XR@loop{#1}}
- \def\XR@aux{%
- \ifx\XR@list\@empty\else\expandafter\XR@explist\fi}
-
- \def\XR@explist{\expandafter\XR@next\XR@list\\}
- \def\XR@loop#1{\openin\@inputcheck#1\relax
- \ifeof\@inputcheck
- \PackageWarning{xr}{^^JNo file #1^^JLABELS NOT IMPORTED.^^J}%
- \expandafter\XR@aux
- \else
- \PackageInfo{xr}{IMPORTING LABELS FROM #1}%
- \expandafter\XR@read\fi}
- \def\XR@read{%
- \read\@inputcheck to\XR@line
- \expandafter\XR@test\XR@line...\XR@}
- \long\def\XR@test#1#2#3#4\XR@{%
- \ifx#1\newlabel
- \newlabel{\XR@prefix#2}{#3}%
- \else\ifx#1\@input
- \edef\XR@list{\XR@list#2\relax}%
- \fi\fi
- \ifeof\@inputcheck\expandafter\XR@aux
- \else\expandafter\XR@read\fi}
-
- \endinput
- %%
- %% End of file `xr.sty'.
-